package com.example.api.mall.demo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @name: SerialEntity
 * @description: 用于测试序列化  transient  static修饰的成员变量不能被序列化
 * @author: xw.s
 * @date: 2021/6/1-14:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SerialEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private transient String name;
    private static String email;
    private Integer age;

}